//-----------------------------------------------------------------------
// <copyright file="a_StatsByMonthService.cs" company="AACECOM">
//     Copyright (c) AACECOM. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

using System;
using System.Collections;
using ThoiTrang.Entities;
using ThoiTrang.Data;
    
namespace ThoiTrang.Business
{   
	/// <summary>
	/// 
	/// </summary> 
    public class a_StatsByMonthService
    {
        #region a_StatsByMonth

        public static void Createa_StatsByMonth(a_StatsByMonth a_StatsByMonth)
        {            
            try
            {
                a_StatsByMonthDAO a_StatsByMonthDAO = new a_StatsByMonthDAO();
                a_StatsByMonthDAO.Createa_StatsByMonth(a_StatsByMonth);
            }            
            catch (Exception ex)
            {                
                throw ex;
            }
        }        

        public static void Updatea_StatsByMonth(a_StatsByMonth a_StatsByMonth)
        {            
            try
            {
                a_StatsByMonthDAO a_StatsByMonthDAO = new a_StatsByMonthDAO();
                a_StatsByMonthDAO.Updatea_StatsByMonth(a_StatsByMonth);
            }           
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        public static void Deletea_StatsByMonth(int docID, DateTime statDate, int docType)
        {            
            try
            {
                a_StatsByMonthDAO a_StatsByMonthDAO = new a_StatsByMonthDAO();
                a_StatsByMonthDAO.Deletea_StatsByMonth(docID, statDate, docType);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }
        
        public static a_StatsByMonth Geta_StatsByMonth(int docID, DateTime statDate, int docType)
        {            
            try
            {
                a_StatsByMonthDAO a_StatsByMonthDAO = new a_StatsByMonthDAO();
                return a_StatsByMonthDAO.Geta_StatsByMonth(docID, statDate, docType);                
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }                

        public static a_StatsByMonthCollection Geta_StatsByMonthList(a_StatsByMonthColumns orderBy, OrderDirection orderDirection)
        {            
            try
            {
                a_StatsByMonthDAO a_StatsByMonthDAO = new a_StatsByMonthDAO();
                return a_StatsByMonthDAO.Geta_StatsByMonthList(orderBy, orderDirection);
            }            
            catch (Exception ex)
            {
               throw ex;
            }
        }        

        public static a_StatsByMonthCollection Geta_StatsByMonthList(a_StatsByMonthColumns orderBy, OrderDirection orderDirection, int page, int pageSize, out int totalRecords)
        {            
            try
            {
                a_StatsByMonthDAO a_StatsByMonthDAO = new a_StatsByMonthDAO();
                return a_StatsByMonthDAO.Geta_StatsByMonthList(orderBy, orderDirection, page, pageSize, out totalRecords);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        #endregion
    }
}